package com.ruandi.test15;

public class Manager extends FuMC {
    //属性
    private int bonus;

    //构造参数
    public Manager() {
    }
    public Manager(String name, int id, int salary, int bonus) {
        super(name, id, salary);
        this.bonus = bonus;
    }

    //行为
    public void show(){
        System.out.println("工号为"+getId()+"基本工资为"+getSalary()+"奖金为"+bonus+"的"+getName()+"正在努力的做着管理工作,分配任务,检查员工提交上来的代码.....");
    }

    //get set
    public int getBonus() {
        return bonus;
    }

    public void setBonus(int bonus) {
        this.bonus = bonus;
    }
}

